//
//  PKImageModel.m
//  PianKe
//
//  Created by mingtao on 15/10/10.
//  Copyright (c) 2015年 mingtao. All rights reserved.
//

#import "PKImageModel.h"

@implementation PKImageModel

-(void)setValue:(id)value forKey:(NSString *)key
{
    
    if ([key isEqualToString:@"userinfo"]) {
        
        self.userinfo = [[PKImageUserinfo alloc]init];
        
        [self.userinfo setValuesForKeysWithDictionary:value];

    }else if ([key isEqualToString:@"counterList"])
    {
        self.counterList=[[PKImageCounterList alloc]init];
        [self.contentid setValuesForKeysWithDictionary:value];
    
    }else if ([key isEqualToString:@"shareinfo"])
    {
        self.shareinfo = [[PKImageShareinfo alloc]init];
        [self.shareinfo setValuesForKeysWithDictionary:value];
        
    }else if ([key isEqualToString:@"typeid"]) {
        
        self.typeID =value;
        
    }else if ([key isEqualToString:@"typename"])
    {
        self.typeName = value;
    
    }else
    {
        [super setValue:value forKey:key];
        
    }
        
    


}

@end
